/*7SDMIgexLY9TFEYuO69iBjD3fPa1C15Z0brF0GdlhMa3m7W7FWQwuoyytaGLkKfF*/
/*
 * @Author: xiahui 
 * @PageInfo: 审批详情
 * @Date: 2019-02-13 13:13:54 
 * @Last Modified by: zhangflr
 * @Last Modified time: 2021-05-17 14:50:17
 */
import { FIELDS } from '../../constance';

export default function(props, record, index) {
	let pk = record[FIELDS.pk_ct_pu].value;
	let billtype = record[FIELDS.vtrantypecode].value;
	let blatest = record.blatest && record.blatest.value ? record.blatest.value : '';
	let fstatusflag = record.fstatusflag && record.fstatusflag.value ? record.fstatusflag.value : '';
	//只要是生效此为true,如果为生效则取自原始主键
	if (blatest && fstatusflag == '1') {
		let pk_origct = record.pk_origct && record.pk_origct.value ? record.pk_origct.value : '';
		pk = pk_origct ? pk_origct : pk;
	}

	this.setState({ pk: pk, billtype: billtype, showApproveInfo: true });
}

/*7SDMIgexLY9TFEYuO69iBjD3fPa1C15Z0brF0GdlhMa3m7W7FWQwuoyytaGLkKfF*/